<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>异常</title>
</head>
<body>

<script>
    function test(chushu,beichushu) {
        try{
            let shang = chushu/beichushu;
            console.log("商:"+shang);
            return shang;
        }catch (e) {
            console.log(e);
        }finally {
            console.log("永远会被执行");
        }
    }
</script>
</body>
</html>